<div class="photo_info">
	<div class="photo_link">
		<a href="/albums/" class="photo_link">Фотогалерея</a> &rarr; <a
			class="photo_link" href="/albums/view?id={$albums.id}">{$albums.name}</a>
		&rarr; {$photo.title} <br />
	</div>

	<center style="text-align: center;">
		<div class="next_prev_parent" >
			<div class="next_prev photo_link2" onclick="prevPhoto()">
				&larr;
			</div>
			<div class="next_prev photo_link2" onclick="nextPhoto()">
				&rarr;
			</div>
		</div>
		<div id="div_big_photo" onclick="11111">
			<input id="photo_id" type="hidden"
				value='/albums/photo?id={$photo.id}' /> <input id="prev" type="hidden"
				value='/albums/photo?id={$id_prev}' /> <img id="photo"
				src="/App/Views/albums/img/{$albums.id}/{$photo.file_name}"
				alt="{$photo.file_name}" onclick="nextPhoto()" class="photo_big"
				data-link="/albums/photo?id={$id_next}"></img>
		</div>
		<div class="next_prev_parent">
			<div class="next_prev photo_link2" onclick="prevPhoto()">
				&larr;
			</div>
			<div class="next_prev photo_link2" onclick="nextPhoto()">
				&rarr;
			</div>
		</div>
	</center>
</div>


<center>
	<!-- <div class="h3_photo">Коментарии</div> //-->
	<div class="line"></div>

	{foreach from=$comments item=el}

	<div class="comments">
		<div class="comments-head">
			<div class="comments-username">{$el.author}</div>
			<div class="comments-date">{$el.date}</div>
		</div>
		<p>
		
		
		<div class="comments-text">{$el.text}</div>
	</div>

	{/foreach}


	<div id="divStatusAdd"></div>

	<div class="line"></div>

	<div id="add-comments">
		<form id="comments-add" onsubmit="sendRequest(); return false"
			name="comments-add" method="post"
			action="/albums/add_comment?id={$photo.id}">
			<div class="comments_contener">
				<label class="com-info">name</label> <br /> <input name="author"
					type="text" class="comments-input" />
			</div>
			<div class="comments_contener">
				<label class="com-info">email</label> <br /> <input name="email"
					type="email" class="comments-input" />
			</div>
			<p>
				<textarea name="text" rows="5" class="comments-textarea"></textarea>
				<br /> <input type="submit" name="submit" value="Отправить"
					class="comments-btn">
		
		</form>
	</div>
</center>
